{
    "protocolType": "standard",
    "product_key": "6f3074fe43894547a4f1314bd7e3ae0b",
    "packetVersion": "0x00000004",
    "name": "微信宠物屋",
    "entities": [
        {
            "id": 0,
            "name": "entity0",
            "display_name": "机智云开发套件",
            "attrs": [
                {
                    "display_name": "开启/关闭红色灯",
                    "name": "LED_OnOff",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 0
                    },
                    "type": "status_writable",
                    "id": 0,
                    "desc": "....."
                },
                {
                    "display_name": "设定LED组合颜色",
                    "name": "LED_Color",
                    "data_type": "enum",
                    "enum": [
                        "自定义",
                        "黄色",
                        "紫色",
                        "粉色"
                    ],
                    "position": {
                        "bit_offset": 1,
                        "len": 2,
                        "unit": "bit",
                        "byte_offset": 0
                    },
                    "type": "status_writable",
                    "id": 1,
                    "desc": "....."
                },
                {
                    "display_name": "设定LED红色值",
                    "name": "LED_R",
                    "data_type": "uint8",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "byte",
                        "byte_offset": 1
                    },
                    "uint_spec": {
                        "addition": 0,
                        "max": 254,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_writable",
                    "id": 2,
                    "desc": "....."
                },
                {
                    "display_name": "设定LED绿色值",
                    "name": "LED_G",
                    "data_type": "uint8",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "byte",
                        "byte_offset": 2
                    },
                    "uint_spec": {
                        "addition": 0,
                        "max": 254,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_writable",
                    "id": 3,
                    "desc": "....."
                },
                {
                    "display_name": "设定LED蓝色值",
                    "name": "LED_B",
                    "data_type": "uint8",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "byte",
                        "byte_offset": 3
                    },
                    "uint_spec": {
                        "addition": 0,
                        "max": 254,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_writable",
                    "id": 4,
                    "desc": "....."
                },
                {
                    "display_name": "设定电机转速",
                    "name": "Motor_Speed",
                    "data_type": "uint16",
                    "position": {
                        "bit_offset": 0,
                        "len": 2,
                        "unit": "byte",
                        "byte_offset": 4
                    },
                    "uint_spec": {
                        "addition": -5,
                        "max": 10,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_writable",
                    "id": 5,
                    "desc": "....."
                },
                {
                    "display_name": "红外探测",
                    "name": "Infrared",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 6
                    },
                    "type": "status_readonly",
                    "id": 6,
                    "desc": "....."
                },
                {
                    "display_name": "环境温度",
                    "name": "Temperature",
                    "data_type": "uint8",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "byte",
                        "byte_offset": 7
                    },
                    "uint_spec": {
                        "addition": -13,
                        "max": 200,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_readonly",
                    "id": 7,
                    "desc": "....."
                },
                {
                    "display_name": "环境湿度",
                    "name": "Humidity",
                    "data_type": "uint8",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "byte",
                        "byte_offset": 8
                    },
                    "uint_spec": {
                        "addition": 0,
                        "max": 100,
                        "ratio": 1,
                        "min": 0
                    },
                    "type": "status_readonly",
                    "id": 8,
                    "desc": "....."
                },
                {
                    "display_name": "报警1",
                    "name": "Alert_1",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 9
                    },
                    "type": "alert",
                    "id": 9,
                    "desc": "....."
                },
                {
                    "display_name": "报警2",
                    "name": "Alert_2",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 1,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 9
                    },
                    "type": "alert",
                    "id": 10,
                    "desc": "....."
                },
                {
                    "display_name": "LED故障",
                    "name": "Fault_LED",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 0,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 10
                    },
                    "type": "fault",
                    "id": 11,
                    "desc": "....."
                },
                {
                    "display_name": "电机故障",
                    "name": "Fault_Motor",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 1,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 10
                    },
                    "type": "fault",
                    "id": 12,
                    "desc": "....."
                },
                {
                    "display_name": "温湿度传感器故障",
                    "name": "Fault_TemHum",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 2,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 10
                    },
                    "type": "fault",
                    "id": 13,
                    "desc": "....."
                },
                {
                    "display_name": "红外传感器故障",
                    "name": "Fault_IR",
                    "data_type": "bool",
                    "position": {
                        "bit_offset": 3,
                        "len": 1,
                        "unit": "bit",
                        "byte_offset": 10
                    },
                    "type": "fault",
                    "id": 14,
                    "desc": "....."
                }
            ]
        }
    ],
    "ui": {
        "object": {
            "version": 4,
            "showEditButton": false
        },
        "sections": [
            {
                "elements": [
                    {
                        "boolValue": false,
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.LED_OnOff"
                            ],
                            "perm": "W"
                        },
                        "type": "QBooleanElement",
                        "key": "entity0.LED_OnOff",
                        "title": "开启/关闭红色灯"
                    },
                    {
                        "items": [
                            "自定义",
                            "黄色",
                            "紫色",
                            "粉色"
                        ],
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.LED_Color"
                            ],
                            "perm": "W"
                        },
                        "type": "QRadioElement",
                        "key": "entity0.LED_Color",
                        "title": "设定LED组合颜色"
                    },
                    {
                        "title": "设定LED红色值",
                        "bind": "floatValue:float",
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.LED_R"
                            ],
                            "uint_spec": {
                                "max": 254,
                                "step": 1,
                                "min": 0
                            },
                            "perm": "W"
                        },
                        "value": 0,
                        "key": "entity0.LED_R",
                        "maximumValue": 254,
                        "minimumValue": 0,
                        "type": "QFloatElement"
                    },
                    {
                        "title": "设定LED绿色值",
                        "bind": "floatValue:float",
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.LED_G"
                            ],
                            "uint_spec": {
                                "max": 254,
                                "step": 1,
                                "min": 0
                            },
                            "perm": "W"
                        },
                        "value": 0,
                        "key": "entity0.LED_G",
                        "maximumValue": 254,
                        "minimumValue": 0,
                        "type": "QFloatElement"
                    },
                    {
                        "title": "设定LED蓝色值",
                        "bind": "floatValue:float",
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.LED_B"
                            ],
                            "uint_spec": {
                                "max": 254,
                                "step": 1,
                                "min": 0
                            },
                            "perm": "W"
                        },
                        "value": 0,
                        "key": "entity0.LED_B",
                        "maximumValue": 254,
                        "minimumValue": 0,
                        "type": "QFloatElement"
                    },
                    {
                        "title": "设定电机转速",
                        "bind": "floatValue:float",
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.Motor_Speed"
                            ],
                            "uint_spec": {
                                "max": 5,
                                "step": 1,
                                "min": -5
                            },
                            "perm": "W"
                        },
                        "value": 0,
                        "key": "entity0.Motor_Speed",
                        "maximumValue": 5,
                        "minimumValue": -5,
                        "type": "QFloatElement"
                    },
                    {
                        "boolValue": false,
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.Infrared"
                            ],
                            "perm": "N"
                        },
                        "type": "QBooleanElement",
                        "key": "entity0.Infrared",
                        "title": "红外探测"
                    },
                    {
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.Temperature"
                            ],
                            "uint_spec": {
                                "max": 187,
                                "step": 1,
                                "min": -13
                            },
                            "perm": "N"
                        },
                        "type": "QLabelElement",
                        "key": "entity0.Temperature",
                        "title": "环境温度"
                    },
                    {
                        "object": {
                            "action": "entity0",
                            "bind": [
                                "entity0.Humidity"
                            ],
                            "uint_spec": {
                                "max": 100,
                                "step": 1,
                                "min": 0
                            },
                            "perm": "N"
                        },
                        "type": "QLabelElement",
                        "key": "entity0.Humidity",
                        "title": "环境湿度"
                    }
                ]
            }
        ]
    }
}